"use strict";
/*jshint esversion:6*/
import React from "react";
import ReactDOM from "react-dom";
import $ from "jquery";
import "jstree";

export default class ReactTree extends React.Component {
    constructor(props){
        super(props);
        this.state ={
            se:null
        };
    }
    componentDidMount() {
        $(ReactDOM.findDOMNode(this))
            .jstree({
                core: {
                    data:this.props.core
                },
                plugins:["contextmenu"]
            });


/*        let ref = $(ReactDOM.findDOMNode(this)).jstree(true)
        let sel = ref.get_container();
        $(ReactDOM.findDOMNode(this)).on('click',function(){
            console.log()
        })*/
    }

    render() {
        return (<nav></nav>);
    }
}
